// TS 中定义一个数组

let numbers: number[] = [1, 2];

numbers = [3, 4];

let strings: string[] = ['a', '1'];

// 写法2
let nums: Array<number> = [1, 3];
// nums = [true]

console.log(nums);
